home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_308 / freq / freq.doc < prev    next >
Text File  |  1992-05-06  |  32KB  |  637 lines

  1.  
  2.  
  3.  
  4.                                    Introduction
  5.  
  6.                FReq is a general purpose file requester.  It was written
  7.           as a result of my dissatisfaction with most of the file
  8.           requesters I am forced to use daily.  FReq was designed to be
  9.           easy to use and fast.
  10.                You may ask yourself "What good is just a file requester
  11.           without an application program built around it?"  Answer: FReq
  12.           was designed with a built-in REXX port allowing you to replace
  13.           the file requesters in your existing applications with FReq
  14.           (provided they also have a REXX port).  Why would you want to
  15.           do this?  I feel that once you have used FReq, you will wish
  16.           that all of your programs could use it.
  17.                Recognizing that not everyone currently has the ARexx
  18.           language (it will be part of the operating system in release
  19.           1.4 of AmigaDOS), I have provided a method of accessing FReq
  20.           without it.  Please refer to the section Using FReq without
  21.           ARexx for a discussion of how to use FReq without the ARexx
  22.           language.
  23.                I am making FReq available to the general public without
  24.           charge to encourage its use.  If you are a software developer,
  25.           please contact me to find out how you can incorporate FReq into
  26.           your own application.
  27.  
  28.  
  29.  
  30.                          Quick Run-Down of FReq's Features
  31.  
  32.                     + User selects disks by volume name
  33.                     + Sorts directories and filenames separately
  34.                     + Filters ".info" files
  35.                     + Performs pattern matching
  36.                     + Can list all existing assignments
  37.                     + Displays file size
  38.                     + Displays file and directory dates
  39.                     + Displays file comments, protection bits, etc.
  40.                     + Stays resident in memory
  41.                     + Programmable using the ARexx language
  42.                     + Fast Operation.  Able to scan hard disk directories
  43.                       at greater than 60 entries per second.
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.                                     Using FReq
  53.  
  54.                First copy the file 'FReq' to your 'DEVS:' directory.  The
  55.           example programs supplied with FReq assume that the 'FReq' file
  56.           is located in your 'DEVS:' directory.
  57.                With proper programming techniques it is not necessary to
  58.           pre-load FReq to use it.  You may want to do this, however, to
  59.           prevent needing to load FReq when it's used the first time.  If
  60.           you use FReq a lot, then it would be a good idea to add the
  61.           following line to your Startup-Sequence.
  62.  
  63.                        RUN >NIL: <NIL: DEVS:FReq >NIL: <NIL:
  64.  
  65.                Note that nothing appears to happen after running FReq. 
  66.           FReq does not open its window until a program calls for it. 
  67.           The example program 'FReq.rexx' shows the proper way to call
  68.           FReq from within a REXX program.
  69.                The programs 'Startup.txed', 'Open.txed', and
  70.           'SaveAS.txed' can be used to replace the file requester in
  71.           MicroSmiths' TxEd Plus editor program.  Each of these programs
  72.           contain comments explaining their use.
  73.  
  74.  
  75.  
  76.                            Quick Guide to Operating FReq
  77.  
  78.                When FReq's window first opens, one of two possible items
  79.           are listed in the display window.  If FReq is called upon with
  80.           the 'DisplayDef' option, the current directory is listed. 
  81.           Otherwise all currently mounted disk volume names are listed. 
  82.           Disk volume names may be identified by a small disk icon to the
  83.           left of each name.
  84.                The information FReq lists in its display window is color
  85.           coded.  This document will assume you are using the default
  86.           preferences settings where color 1 is blue, color 2 is white,
  87.           color 3 is black, and color 4 is red.  If you are using colors
  88.           different from these then substitute the colors you are using
  89.           for the ones listed above.  In the 'Preferences' program, color
  90.           1 is on the far left and color 4 is on the right.
  91.                Filenames and directories are listed in FReq's display
  92.           window.  The directories in the current path are sorted and
  93.           displayed first.  Directories can be recognized by their red
  94.           color.  Files are white in color and are sorted and displayed
  95.           after the directories.
  96.                To list the contents of a directory in the display window,
  97.           you simply "single-click" on the directory you want listed. 
  98.           After doing so the chosen directory is added to the current
  99.           path and the contents of that directory is listed in the
  100.           display window.  To get back the directory listed previously,
  101.           you can "single-click" on the "Parent" gadget located above and
  102.           to the left of the display window.  Doing so will subtract the
  103.           current directory from the current path and then the "parent"
  104.           directory will be displayed.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.                Choosing a file is done in the same way that directories
  111.           are chosen.  If you "single-click" on a filename, that name is
  112.           copied into the current filename box located just below the
  113.           display window.  Note that the path and filename is not
  114.           returned to your calling program until the 'OK' button is
  115.           selected.
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.                                    FReq's Menus
  123.  
  124.                FReq has several menus which access many of its special
  125.           features.  These menus are accessed in Intuition's normal
  126.           manner using the right mouse button.  Detailed descriptions of
  127.           each menu and that menu's options are given below.
  128.  
  129.           Project Menu -  The only option under the Project menu is the
  130.           "About" option.  Selecting "About" opens a window displaying
  131.           information about FReq.  Some of the information displayed
  132.           includes the version number, the release date, and the public
  133.           REXX port name.
  134.  
  135.           Display Menu -  The display menu currently has three options: 
  136.           "Name Only", "File Size", and "File Date".  Selecting the file
  137.           size or date option causes the file size or date to display 
  138.           beside the filename in the display window.  Each of these menu
  139.           options also has an equivalent command key sequence.  The key
  140.           sequence corresponding to each menu option is listed below.
  141.  
  142.                Key Sequence        Function Performed               
  143.  
  144.                Right-Amiga N       Displays only the filename
  145.                Right-Amiga S       Displays each file's size
  146.                Right-Amiga D       Displays file and directory dates
  147.  
  148.                Note that one of the Display Menu's options is always
  149.           activated.  The Display Menu option which is currently active
  150.           is indicated by a check mark to the left of the menu option
  151.           itself.
  152.  
  153.  
  154.           Special Menu -  The special menu has three options "Assigns",
  155.           "Display .info", and "File Status".  Each control one of FReq's
  156.           special functions.  The "Special" menu's options are described
  157.           below in detail.
  158.  
  159.           Assigns - This menu option lists all of the logical assignments
  160.           currently defined in your system.  Sometimes it is much easier
  161.           to locate a directory by its "Assigned" name rather than
  162.           locating it by its full path name.  If you are unfamiliar with
  163.           logical assignments then refer to the AmigaDOS manual's Assign
  164.           command.       Two examples of assignments which should always
  165.           be in existence are 'C:' (the directory containing all of the
  166.           CLI commands) and 'S:' (the directory containing your 'Startup-
  167.           Sequence' file and other script files).
  168.                Choosing a logical assignment from the display window
  169.           causes the complete path specification for that assignment to
  170.           be displayed in the "Current Path Gadget".
  171.                The "Assigns" menu option can also be performed by using
  172.           the 'Right-Amiga A' keyboard sequence.
  173.  
  174.           Display .info - The "Display .info" menu option is one that can
  175.           be toggled on or off.  FReq normally filters out (e.g. does not
  176.  
  177.  
  178.  
  179.  
  180.  
  181.           list) any file with a suffix of '.info'.  These ".info" files
  182.           are used by Workbench to display the icons associated with
  183.           files.  For example, if your disk contains the two files
  184.           'Clock' and 'Clock.info', then the 'Clock' file is a program
  185.           which you can execute and the 'Clock.info' file contains the
  186.           picture of a clock that you will see in one of Workbench's
  187.           windows.
  188.                Normally, when choosing a file from an application
  189.           program, you will not need to see the ".info" files and that is
  190.           why FReq does not list them.  If for some reason you do need to
  191.           see these files, then you can do so by setting the 'Display
  192.           .info' option "on".  One reason you might need to access these
  193.           files, for instance, is if you are using an Icon Editor
  194.           program.
  195.                When this option is "on" there will be a check mark to the
  196.           left of this option in the menu.
  197.                The "Display .info" filter can be toggled "off" or "on" by
  198.           using the 'Right-Amiga I' command key sequence.  In addition,
  199.           the REXX command 'DisplayInfo' can be used to set this filter
  200.           under program control.
  201.  
  202.           File Status - The "File Status" menu option opens a window
  203.           displaying supplemental information on the currently selected
  204.           file.  The information displayed includes the file's size,
  205.           date, protection bits, comment, and disk key.  When you are
  206.           finished viewing a file's status, close the status window by
  207.           "single-clicking" on the close gadget located in the upper
  208.           left- hand corner of the window's border.  Note that while the
  209.           status window is open, FReq becomes inoperable.
  210.                The file status function can be accessed from the keyboard
  211.           with the 'Right-Amiga F' command key sequence.
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.                                   FReq's Gadgets
  220.  
  221.                FReq has a number of gadgets represented by various icons
  222.           and boxes located within its window.  The function of each
  223.           gadget is described in detail below.
  224.  
  225.           Display Window Gadget -  This gadget is the large black
  226.           rectangular box with a white border around it that occupies
  227.           most of FReq's main window.  This area is where filenames,
  228.           directories, and disk volume names are displayed.  A filename
  229.           can be selected, or a directory or disk volume's contents can
  230.           be listed simply by "single-clicking" on this gadget with the
  231.           mouse pointer over the desired name.  File dates and sizes are
  232.           also displayed in this window by selecting the appropriate menu
  233.           function.
  234.                If you "double-click" on a filename in the display window,
  235.           this will have the same effect as "single-clicking" on the
  236.           filename and then selecting the "OK Gadget".  "Double-Clicking"
  237.           on a volume or directory name produces the same effect as
  238.           "single-clicking".
  239.  
  240.           Parent Gadget -  The "Parent Gadget" is located just above and
  241.           to the left of the Display Window.  The "Parent Gadget" causes
  242.           the parent of the current directory to be listed.  If the
  243.           current directory is also the root directory of the disk being
  244.           accessed, then selecting the parent gadget lists the mounted
  245.           disk volume names.
  246.                If you have descended several levels of directories, you
  247.           can get back to the root directory of the currently selected
  248.           disk by holding down either SHIFT key while selecting this
  249.           gadget.  
  250.  
  251.           Volumes Gadget -  The "Volumes Gadget" is located to the right
  252.           of the "Parent Gadget".  Selecting the "Volumes Gadget" will
  253.           cause all of the mounted disk volume names to be listed in the
  254.           "Display Window".
  255.                Note that the disk volume names are also listed when you
  256.           select the "Parent Gadget" while at the root-level of a disk.
  257.  
  258.           Scroll Bar -  The scroll bar is located to the right of the
  259.           display window and is a long rectangular gadget.  The scroll
  260.           bar lists the hidden filenames or directories.  Since the
  261.           display window can only show up to 15 names at one time, a
  262.           given path with more than 15 entries cannot be fully displayed
  263.           at one time.
  264.                The size of the scroll bar corresponds directly to the
  265.           number of files in the current directory.  For example, if
  266.           there are 30 files in the current directory then the scroll bar
  267.           will be half the size of its containing box; if there are 60
  268.           files then it will be one-forth the size, etc.
  269.                To scroll through the listing of files and directories,
  270.           place the mouse pointer over the scroll bar's knob and hold
  271.           down the left mouse button.  Moving the mouse up and down
  272.           scrolls the display window to reveal the remaining files and
  273.  
  274.  
  275.  
  276.  
  277.  
  278.           directories.
  279.                An alternate method to scrolling the display window is
  280.           "paging" it.  You can display the next or previous page of
  281.           files and directories in the display window by "single-
  282.           clicking" with the mouse pointer directly below or above the
  283.           knob of the scroll gadget.
  284.  
  285.           Arrow Gadgets -  The arrow gadgets located directly below the
  286.           scroll gadget provide another method of scrolling the display
  287.           window.  If the left mouse button is held down over an arrow
  288.           gadget, then the display window continues to scroll in the
  289.           direction of the arrow until the gadget is either released or
  290.           the end of the list of files is reached.
  291.                Holding down a shift key while selecting the up-arrow
  292.           gadget will move the display to the beginning of the file list. 
  293.           Likewise, holding down a shift key while selecting the down-
  294.           arrow gadget will move to the extreme end of the file list.
  295.  
  296.           Current Path Gadget -  This gadget is the long rectangular box
  297.           located in the upper right corner of FReq's main window.  Its
  298.           purpose is to display the complete path specification of the
  299.           directory listed in the display window.  Normally the current
  300.           path automatically adjusts to reflect the volume and
  301.           directories chosen from the display window.  You can, however,
  302.           manually adjust the path by "single-clicking" on the "Current
  303.           Path Gadget" and then typing in any valid AmigaDOS path
  304.           specification.  After pressing the Return or Enter key, the
  305.           directory entered lists into the display window, provided a
  306.           valid path specification is given.
  307.                Note that this is a standard intuition string gadget and
  308.           once activated all of the standard editing command key
  309.           sequences will be available.  These editing command sequences
  310.           are as follows:
  311.  
  312.                Key Sequence         Effect                               
  313.  
  314.                Right-Amiga X        Erases the entire line
  315.                Right-Amiga Q        Undoes any changes made to the line
  316.                Shift-Right Arrow    Moves cursor to the end of the line
  317.                Shift-Left Arrow     Moves cursor to the start of the line
  318.  
  319.                If the current path is entirely erased, leaving the
  320.           "Current Path Gadget" blank, the default path of the program
  321.           calling FReq is displayed.
  322.  
  323.           Current Filename Gadget -  This gadget is the long rectangular
  324.           gadget located immediately below the display window showing the
  325.           name of the currently selected file.  If this gadget is blank,
  326.           then no file is selected.
  327.                The filename may be typed in from the keyboard or selected
  328.           by "single-clicking" on a file listed in the display window. 
  329.           Note that the filename is not accepted until the "OK Gadget" is
  330.           selected.  This feature will allow you, during a save
  331.           operation, to pick a filename from the display window similar
  332.  
  333.  
  334.  
  335.  
  336.  
  337.           to the name you want to call your file, then just make minor
  338.           changes to it before selecting the "OK Gadget".  For example,
  339.           if you want to save a file with the name 'My_Document2' and
  340.           there is already a file named 'My_Document' in the currently
  341.           listed directory, then you can choose 'My_Document' from the
  342.           display window and then simply edit that name adding the
  343.           character '2' to the end.  Doing this can save a lot of typing.
  344.                The "Filename Gadget" is also a standard intuition string
  345.           gadget.  The editing commands listed in the description of the
  346.           "Current Path Gadget" are available within this gadget as well.
  347.  
  348.           Pattern Gadget -  This is the small rectangular gadget located
  349.           below the "Current Filename Gadget".  FReq provides complete
  350.           AmigaDOS pattern matching capabilities.
  351.                Normally, the "Pattern Gadget" contains the characters
  352.           '#?', a pattern specification meaning "match everything".  You
  353.           can edit the pattern specification causing FReq to list only
  354.           those files and directories matching the specified pattern.
  355.                Some pattern specification examples are given below.
  356.  
  357.                Pattern     Effect                                    
  358.  
  359.                #?          Lists all files and directories
  360.                #?.doc      Lists only the files ending with '.doc'
  361.                c#?         Lists only the files beginning with 'c'
  362.                #?x#?       Lists only the files containing an 'x'
  363.  
  364.                Keep in mind that it is possible to specify a pattern
  365.           resulting in no files or directories being listed.  If this
  366.           happens, the screen flashes and an error message is displayed.
  367.                The editing commands of the "Pattern Gadget" are the same
  368.           as those listed for the "Current Path Gadget".
  369.  
  370.           OK and CANCEL Gadgets -  These gadgets are located in the lower
  371.           right corner of FReq's window and are identified by their
  372.           respective names.  They are used to signal the program calling
  373.           FReq of your intentions.  If the "OK Gadget" is selected, FReq
  374.           passes the complete path specification and filename back to the
  375.           calling program.  If the "CANCEL Gadget" is selected, nothing
  376.           is passed back to the calling program except the message that
  377.           you have selected "Cancel".
  378.                Selecting the "OK Gadget" lets your program know that you
  379.           have selected a file and everything is "OK".  Select the
  380.           "Cancel Gadget" if you wish to abort the current operation of
  381.           the calling program, such as the loading or saving of a file.
  382.  
  383.           Close Window Gadget -  Selecting this gadget is similar to
  384.           selecting the "CANCEL Gadget" with one important distinction. 
  385.           This gadget causes FReq to close itself down and free up any
  386.           memory it was using.  Normally FReq stays resident in memory
  387.           and remains there until the 'CloseDown' command is received at
  388.           its REXX port.  Selecting the "Close Window Gadget" forces FReq
  389.           to close itself down immediately and should indicate a "Cancel"
  390.           condition to the calling program.
  391.  
  392.  
  393.  
  394.  
  395.  
  396.                                  Keyboard Commands
  397.  
  398.                FReq supports a number of keyboard commands.  Note that if
  399.           one of the string gadgets is activated, all of the "key-
  400.           commands" are disabled until the "Return" or "Enter" key is
  401.           pressed.  You can tell if a string gadget is activated by the
  402.           presence of a cursor within that gadget.
  403.                When FReq's main window first opens the "Current Filename"
  404.           string gadget is normally activated.
  405.             Below is a table listing the "key-commands" FReq supports.
  406.  
  407.                Key            Effect                                   
  408.  
  409.                f              Activates the "Current Filename Gadget"
  410.                TAB            Activates the "Current Filename Gadget"
  411.                d              Activates the "Current Path Gadget"
  412.                p              Activates the "Pattern Gadget"
  413.  
  414.                RETURN         Same as "Single-Clicking" the OK Gadget
  415.                ESC            Same as "Single-Clicking" the CANCEL Gadget
  416.  
  417.  
  418.                In addition, FReq also has the following "Command Key"
  419.           sequences which may be used instead of their equivalent menu
  420.           bar selections.  Below is the table of "Command Key" sequences.
  421.  
  422.                Key Sequence        Equivalent Menu Selection
  423.  
  424.                Right-Amiga N       Display Name Only
  425.                Right-Amiga S       Display Size
  426.                Right-Amiga D       Display Date
  427.  
  428.                Right-Amiga A       Display Assigns
  429.                Right-Amiga I       Display ".info" files
  430.                Right-Amiga F       File Status
  431.  
  432.  
  433.                The SHIFT key has a special meaning when used in
  434.           conjunction with either the "Parent Gadget" or the "Arrow
  435.           Gadgets".  The special functions performed are listed in the
  436.           table below.
  437.  
  438.  
  439.           Command                       Effect                           
  440.  
  441.           SHIFT + Parent Gadget         List root directory of disk
  442.           SHIFT + Up Arrow Gadget       Displays the top of the file list
  443.           SHIFT + Down Arrow Gadget     Displays the end of file the list
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.                                    The REXX Port
  453.  
  454.                FReq has a REXX port named 'FileRequester' which can
  455.           receive commands issued by an ARexx program.  The program
  456.           'FReq.rexx' supplied with FReq is a programming example of the
  457.           proper way to call FReq from within a REXX program.
  458.                The commands FReq currently supports are described in
  459.           detail below.  Letter case is not important.  Note that the
  460.           brackets denote an optional parameter.
  461.  
  462.           DisplayDef -  This command causes FReq to keep all of its
  463.           current settings including the path specification, filename,
  464.           and pattern matching specification.  If the 'DisplayDef'
  465.           command is issued before the 'GetFileName' command, then FReq
  466.           will keep all of its previous settings when opening.  Otherwise
  467.           these settings will be cleared.
  468.                Note that the 'DisplayDef' command must be issued each
  469.           time you call upon FReq and desire the default settings to be
  470.           maintained.  This command is also required if you wish to
  471.           modify one of the default settings with one of the 'Set...'
  472.           commands listed below.
  473.  
  474.           SetTitle [title] -  This command will display title in the
  475.           "drag bar" of FReq's main window.  'Select a File' is the title
  476.           displayed by default.  The title should be set to a meaningful
  477.           message telling the user why the file requester was called. 
  478.           Some good examples are: 'Select a File to Load', 'Choose an
  479.           Archive to Extract', 'Select a Picture to View', etc.
  480.  
  481.           SetPath [path] -  This command sets the default path
  482.           specification to path.  If this command is issued before the
  483.           'GetFileName' command, then path is displayed in the "Current
  484.           Path Gadget" and the contents of the directory specified by
  485.           path will be listed in the display window when FReq first
  486.           opens.  If path is not a valid path specification then no files
  487.           are listed.
  488.                Note that you must also use the 'DisplayDef' command in
  489.           conjunction with this command in order for 'SetPath' to have
  490.           any effect.  The 'SetPath' command sets the default path and
  491.           unless the 'DisplayDef' command is also issued, all the
  492.           defaults will be cleared when FReq opens.
  493.  
  494.           SetPattern [pattern] -  This command sets the pattern matching
  495.           specification to pattern.  Normally it is good practice for the
  496.           pattern matching specification to be set by the user.  This
  497.           matching specification applies to directories as well as files,
  498.           therefore, if you set a pattern using this command, the user
  499.           may not be able to fully navigate their directory tree because
  500.           some directories may not be displayed.  The exception to this
  501.           rule is when you know ahead of time in which directory the user
  502.           needs to be looking.  For example, if you want to list all of
  503.           the available libraries, then you could set the current path to
  504.           'LIBS:' and the pattern to '#?.library'.
  505.                Note that like the 'SetPath' command, you must also use
  506.  
  507.  
  508.  
  509.  
  510.  
  511.           the 'DisplayDef' command in conjunction with 'SetPattern' in
  512.           order for this command to have any effect.  The 'SetPattern'
  513.           command sets the default pattern matching specification and
  514.           unless the 'DisplayDef' command is also issued, all the
  515.           defaults will be cleared when FReq opens.
  516.  
  517.           SetFileName [name] -  This command sets the default filename to
  518.           name.  No checking is done to determine whether or not name is
  519.           a valid filename.
  520.                Note that you must also use the 'DisplayDef' command in
  521.           order for this command to have any effect.  The 'SetFileName'
  522.           command sets the default filename in the "Current Filename
  523.           Gadget" and unless the 'DisplayDef' command is also issued all
  524.           the defaults will be cleared when FReq opens.
  525.  
  526.           GetFileName -  This command asks FReq for a filename.  It
  527.           returns the complete path specification and filename in the
  528.           'Result' variable of the calling REXX program.  You should
  529.           first, however, check the value of the 'RC' return code
  530.           variable to find out if a filename was returned.  If 'RC' is
  531.           equal to 0, then a path and filename was returned.  Otherwise
  532.           no filename is returned and the 'Result' variable remains
  533.           unchanged.  The possible values for 'RC' are listed below.
  534.  
  535.                Value of RC    Meaning of this return code              
  536.  
  537.                     0         The user selected the OK gadget
  538.                     1         The user selected the CANCEL gadget
  539.                     2         The user selected the Close Window gadget
  540.  
  541.                Note that most of FReq's other commands must be issued
  542.           before the 'GetFileName' command in order for them to work. 
  543.           The 'GetFileName' command will pause your REXX program until
  544.           the user selects either OK, CANCEL, or Close Window.
  545.  
  546.           DisplayInfo ON|OFF -  This command turns "on" or "off" the
  547.           ".info file" filtering feature of FReq.  Normally this option
  548.           is set to "off" because there is usually no need to have these
  549.           files listed.  Of course if you are using an Icon Editor you
  550.           may want to see the ".info" files.
  551.  
  552.           CloseDown -  The 'CloseDown' command will cause FReq to
  553.           terminate, freeing all memory that it was using.  It is
  554.           normally a good idea to leave FReq resident in memory as this
  555.           will result in not having to load it in from disk each time it
  556.           is needed.  However, if you need to save memory then you may
  557.           want to "CloseDown" FReq after using it.
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.                              Using FReq without ARexx
  567.  
  568.                This first release of FReq is supplied in two versions. 
  569.           To keep FReq as small as possible I decided to implement a
  570.           separate version which works without the ARexx language.  The
  571.           version of FReq which doesn't require the ARexx language
  572.           (version b) is the file named 'FReq_v1b'.  This version of FReq
  573.           sends the path specification and filename to the standard
  574.           output.  Normally the "standard output" is the window from
  575.           which FReq was invoked.  You can change this, however, by using
  576.           redirection when you execute FReq.  For example, to send the
  577.           path specification and filename to a file in RAM: named
  578.           'FileName' execute FReq as follows:
  579.  
  580.                         FReq_v1b >RAM:FileName [ DEFAULT ]
  581.  
  582.                Note that the "DEFAULT" key word is optional and you do
  583.           not type the bracket characters.  When using version b of FReq,
  584.           the only option available is the "DEFAULT" option.  This option
  585.           causes the default directory to list when FReq opens.  Without
  586.           this option, the volume names list when FReq first opens.
  587.                Unlike version 1.0, version b of FReq clears itself out of
  588.           memory after each invocation.  It would be a good idea to copy
  589.           'FReq_v1b' to the RAM disk if version b of FReq is being used.
  590.                Version b of FReq was primarily provided to allow
  591.           AmigaBASIC programmers to use FReq.  You can call FReq from
  592.           within AmigaBASIC by using the dos.library's Execute()
  593.           function.  Note that in order to use the Execute() function
  594.           from BASIC you must first issue the LIBRARY statement to open
  595.           'dos.library'.  A detailed description of how to do this is
  596.           beyond the scope of this manual.  Refer to the AmigaBASIC
  597.           manual's description of the CALL and LIBRARY statements for a
  598.           description of how to use external functions.
  599.                You can also use version b of FReq within your AmigaDOS
  600.           scripts.  However, you will need some way of retrieving the
  601.           filename from the file you send it to.  An example of doing
  602.           this with version 1.3 of AmigaDOS is given below.
  603.  
  604.                               FReq_v1b >ENV:FileName
  605.                               GetEnv FileName       
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.                                     Error Codes
  616.  
  617.                If you encounter an error during the execution of a REXX
  618.           program sending commands to FReq, you can determine what the
  619.           error is by examining the 'RC' variable.  Below is a table of
  620.           possible error code returns and their meanings.
  621.  
  622.                Error Code     Meaning                                    
  623.  
  624.                     50        Invalid Command.  A command was sent to
  625.                               FReq which it did not recognize.
  626.  
  627.                     51        Invalid Option.  The option given after a
  628.                               command is either not valid or an option
  629.                               was required and not found.
  630.  
  631.                     99        Out of memory Error.  This error can occur
  632.                               whenever your computer gets low on memory.
  633.                               Most of the time this error will cause FReq
  634.                               to close down freeing any memory it used.
  635.  
  636.  
  637.